<?php $this->load->view('layout/adminHeader'); ?>
    
    <div id="mainContent" class="floatFix">
    	<?php $this->load->view('layout/adminToursSubmenu'); ?>
        
        <div class="lCol">
           	
            <?php $this->load->view('layout/flashdata'); ?>
            
            <h2><?php echo $tour['tour_name']; ?></h2>
            
            <ul class="displayList">
            	<li class="floatFix">
                	<p class="dlLabel">Tour Code:</p>
                    <p class="dlContent"><?php echo $tour['tour_code']; ?></p>
                </li>
                
                <li class="floatFix">
                	<p class="dlLabel">Number of Nights:</p>
                    <p class="dlContent"><?php echo $tour['tour_nights']; ?></p>
                </li>
                
                <li class="floatFix">
                	<p class="dlLabel">Default Price:</p>
                    <p class="dlContent">&pound;<?php echo number_format($tour['default_price'], 2, '.', ','); ?></p>
                </li>
            	
                <li><h3>Default Itinerary</h3></li>
                
                <?php
				for ($i = 0; $i < $tour['tour_nights']; $i++)
				{
					$d = "<li class=\"floatFix\">\n";
					$d .= "\t<p class=\"dlLabel\">Night " . ($i + 1) . ":</p>\n";
                        	
							
					if (count($itinerary) > 0 && $i < count($itinerary))
					{
						$d .= "\t<p class=\"dlContent\">" . $itinerary[$i]['hostel_name'] . "</p>\n";
								
					} else
					{
						$d .= "\n";
					}
												
					$d .= "</li>";
							
					echo $d;
				}
				?>
            </ul>
            
			<p><a href="<?php echo site_url('tourtypes/update/' . $tour['id']); ?>">Edit '<?php echo $tour['tour_name']; ?>'</a></p>            
           
            
            
        </div>
        
        <div class="rCol">
        	<h2>Sidebar</h2>
        </div>
        
        
    	
    </div>
    
<?php $this->load->view('layout/adminFooter'); ?>